home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
usenet
/
sources
/
volume91
/
utilitys
/
sman_1_0
/
part01
/
src
/
sless_defs.h
< prev
next >
Wrap
C/C++ Source or Header
|
1991-05-18
|
975b
|
49 lines
#define Prototype extern
#include <exec/types.h>
#include <libraries/dos.h>
#ifdef __DEBUG__
#ifdef __TRACE__
static const char __BaseFile[] = __BASE_FILE__;
#define show_line reportline(__BaseFile,__LINE__)
#else (__TRACE__)
#define show_line
#endif (__TRACE__)
#else (__DEBUG__)
#define show_line
#endif (__DEBUG__)
#define VERSION "1.0"
#define MAXLINE 400
#define makeconid(a,b) ( ((short)(a) << 8) + (b) )
struct conreport {
short conid;
int args[8];
};
#define getc(fp) (((fp)->unget!=0x100||(fp)->pos>=(fp)->bufflen)?sgetc(fp):(fp)->buff[(fp)->pos++])
#define seof(fp) ((fp)->bufflen<=0)
#define stell(fp) ((fp)->filepos+(fp)->pos)
#define ungetc(c,fp) ((fp)->pos--,fp->unget=(c))
#define SEEK_SET 0
#define SEEK_CUR 1
#define SEEK_END 2
typedef struct file {
int filepos,pos,bufflen;
BPTR des;
short unget;
char *buff;
} FILE;
#include "sless_proto.h"